package com.bite.system.domain.question.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

// 问题添加与编辑
@Getter
@Setter
public class QuestionAddDTO {
    @Size(max = 50, message = "标题长度范围不超过50")
    @NotNull(message = "标题不能为空")
    private String title;

    @NotNull(message = "难度不能为空")
    private Integer difficulty;

    @Size(max = 500, message = "标题长度范围不超过500")
    @NotNull(message = "内容不能为空")
    private String content;

    @NotNull(message = "时间限制不能为空")
    private Integer timeLimit;

    @NotNull(message = "空间限制不能为空")
    private Integer spaceLimit;

    @Size(max = 500, message = "案例长度范围不超过500")
    @NotNull(message = "案例不能为空")
    private String questionCase;

    @Size(max = 1000, message = "默认代码块长度范围不超过1000")
    @NotNull(message = "默认代码块不能为空")
    private String defaultCode;

    @Size(max = 500, message = "主函数长度范围不超过500")
    @NotNull(message = "主函数不能为空")
    private String mainFunc;
}
